<template>
	<view class="addInspectTabsContent">
		<view class="upper">
			<commonNavBar title="新增检查" :showRobot="true"></commonNavBar>
			<view class="step">
				<view v-for="(tabs,index) in stepList" :key="index" @tap="stepActive(index)">
					<view :class="{'active':tabs.active}">
						{{ tabs.step }}
					</view>
				</view>
			</view>
		</view>
		<view class="centre">
			<view class="content-container">
				<view class="addInspect" v-show="stepList[0].active">
					<view class="map">
						<image src="@/static/img/mapActive.png" />
						<view style="line-height: normal;">
							<text style="display:block" @tap="companyDimension(addInspectData.lngLat)"
								v-text="isLocationPoint(addInspectData.lngLat) ? '主体已标注':'主体未标注，请进行主体标注【点击开始主体标注】'"></text>
							<text style="color:red;font-size: 10px;" v-show="isLocationPoint(addInspectData.lngLat)"
								v-text="checkDistanceFun() ?this.distanceName:this.distanceName"></text>
						</view>
					</view>
					<view class="content">
						<view class="one">
							<view class="title">
								<view class="left">监管单位信息</view>
							</view>
							<view class="box">
								<view class="text">
									<view class="topicFlex">监管单位：</view>
									<text>{{ addInspectData.deptQuName }}</text>
								</view>
								<view class="text">
									<view class="topicFlex">检查时间：</view>
									<text>{{ checkTime }}</text>
								</view>
								<view class="text">
									<view class="topicFlex">执法人员1： </view>
									<text>{{ LawEnforcementOfficerOne }}</text>
								</view>
								<view class="text">
									<view class="topicFlex" style="margin-left: -17px;"><text
											style="color: red;">*</text>执法人员2：</view>
									<uni-data-select :value="lawEnforcer2Value" :localdata="userList"
										@change="lawEnforcementOfficialsTwo" :clear="false"
										:placeholder="'请选择执法人员'"></uni-data-select>
								</view>
							</view>
						</view>
						<view class="two">
							<view class="title">
								<view class="left">生产经营主体信息</view>
							</view>
							<view class="box">
								<view class="text">
									<view class="topicFlex">生产经营主体：</view>
									<text v-if="addInspectData">{{ addInspectData.companyName }}</text>
								</view>
								<view class="text">
									<view class="topicFlex">生产经营地址：</view>
									<text v-if="addInspectData">{{ addInspectData.address }}</text>
								</view>
								<view class="text">
									<view class="topicFlex">添加剂类别：</view>
									<text v-if="addInspectData">{{ addInspectData.businessScope }}</text>
								</view>
								<view class="text">
									<view class="topicFlex">类别名称：</view>
									<text v-if="addInspectData">{{ addInspectData.splbmc }}</text>
								</view>
								<view class="text">
									<view class="topicFlex">联系方式：</view>
									<input type="number" class="text" placeholder="请输入联系方式"
										v-model="addInspectData.contactPhone"
										style="padding-left:0px;margin-left: 0px;padding-top: 8px;" />
								</view>
								<view class="text">
									<view class="topicFlex">法定代表人：</view>
									<text v-if="addInspectData">{{ addInspectData.legalPerson }}</text>
								</view>
							</view>

						</view>
					</view>
				</view>
				<view class="addInspectContent" v-show="stepList[1].active">
					<view class="positioning">
						<image src="@/static/img/mapActiveTwo.png" />
						<text @tap="companyDimension(addInspectData.lngLat)"
							v-text="isLocationPoint(addInspectData.lngLat) ? '主体已标注':'主体未标注，请进行主体标注【点击开始主体标注】'"></text>
					</view>
					<view class="box">
						<view class="manage_status_box">
							<text class="manage_status_title">生产状态：</text>
							<radio-group v-model="addInspectData.manageStatus" @change="businessStatusRadioChange"
								class="custom-radio-group">
								<label class="labelRadio" :class="{'yes': (addInspectData.manageStatus === '0') } ">
									<radio value="0" :checked="addInspectData.manageStatus === '0'" /> 正常
								</label>
								<label class="labelRadio" :class="{'no': (addInspectData.manageStatus === '1') } ">
									<radio value="1" :checked="addInspectData.manageStatus === '1'" /> 长期停产
								</label>
							</radio-group>
						</view>
						<view class="abnormal" v-show="addInspectData.manageStatus === '1'">
							<view class="text">
								<view class="topicFlex">停产描述：</view>
								<!-- <input type="text" class="problem" placeholder="请输入停产描述"
									v-model="addInspectData.shutdownDescription" placeholder-class="placeholder-class"
									@input="shutdownDescription($event)" /> -->
								<textarea maxlength="2000" class="textarea" placeholder="请输入停产描述"
									@input="shutdownDescription($event)" :value="addInspectData.shutdownDescription" />
							</view>
						</view>
						<view class="three" v-show="addInspectData.manageStatus != '1'">
							<view class="box">
								<view class="text facadePhoto">
									告知页&nbsp;&nbsp;&nbsp;&nbsp;：
									<image style="width:100px;height:100px;border:1px solid #e8e8e8;border-radius: 7px;"
										@tap="showNoticeControl(addInspectData.informUrl)"
										:src="addInspectData.informUrl == undefined ? '/static/img/upload.png': baseUrl + addInspectData.informUrl ">
									</image>
								</view>
							</view>
						</view>

						<view class="bottom-tab" :style="{ bottom: '110rpx'}"
							style="position: fixed; width: 100%; left: 0; z-index: 2;">
							<uni-collapse style="background-color: #026DC6;">
								<uni-collapse-item :title="'检查结果'" :show-animation="true" :titleBgColor="'#026DC6'"
									:titleColor="'#ffffff'">
									<view class="content dt">
										<div class="div">
											<view class="left">检查结果：</view>
											<radio-group v-model="addInspectData.accordCount"
												@change="accordRadioChange" class="custom-radio-group">
												<label class="labelRadio"
													:class="{'yes': addInspectData.accordCount == '0'}">
													<radio value="0" :disabled="disableOptionsNew['0']" />
													符合
												</label>

												<label class="labelRadio"
													:class="{'no': addInspectData.accordCount == '1'}">
													<radio value="1" :disabled="disableOptionsNew['1']" />
													基本符合
												</label>
												<label class="labelRadio"
													:class="{'no': addInspectData.accordCount == '2'}">
													<radio value="2" :disabled="disableOptionsNew['2']" />
													不符合
												</label>
											</radio-group>
										</div>
										<view class="div">
											<view class="left">处理结果：</view>
											<radio-group v-model="addInspectData.CHECK_RESULTS"
												@change="handleRadioChange" class="custom-radio-group">
												<!-- <label class="labelRadio"
													:class="{'yes': falseCount == 0}"> -->
												<label class="labelRadio"
													:class="{'yes': addInspectData.CHECK_RESULTS == '0'}">
													<!-- <radio value="0"
														disabled /> -->
													<radio value="0" :disabled="disableOptionsNew['0']" />
													通过检查
												</label>

												<label class="labelRadio"
													:class="{'no': addInspectData.CHECK_RESULTS == '1'}">
													<!-- <radio value="1"
														:disabled="falseCount == 0" /> -->
													<radio value="1" :disabled="disableOptionsNew['2']" />
													责令整改
												</label>
												<label class="labelRadio"
													:class="{'no': addInspectData.CHECK_RESULTS == '2'}">
													<!-- <radio value="2"
														:disabled="falseCount == 0" /> -->
													<radio value="2" :disabled="disableOptionsNew['2']" />
													调查处理
												</label>
											</radio-group>
										</view>
										<view class="div"
											v-if="addInspectData.accordCount == '2' || addInspectData.CHECK_RESULTS == '1' || addInspectData.CHECK_RESULTS == '2'">
											<view class="left">整改时间：</view>
											<view class="right" style="width:  70%;">
												<picker mode="date" @change="rectificationTimeClick">
													<view style="width: 600rpx;height:30rpx ">
														<text style="font-size: 19rpx;">
															{{(rectificationTimeLimit == undefined || rectificationTimeLimit == '') ? '请选择时间' : rectificationTimeLimit}}
														</text>
													</view>
												</picker>
											</view>
										</view>
									</view>
								</uni-collapse-item>
							</uni-collapse>
						</view>

						<view class="dd" v-for="(item, index) in rectificationSituationDataList" :key="index"
							v-show="addInspectData.manageStatus != '1'">
							<view class="up">
								<view class="h1">
									{{item.serialNumber}}.&nbsp;&nbsp;{{ item.inspectionItemName }}
								</view>
								<view class="titles-right">
									<view class="list">
										<view class="option" @tap="inspectionContentActive(index, '1')"
											:class="{ 'active':   item.rightButtonActive == '1'}">
											是
										</view>
										<view class="option" @tap="inspectionContentActive(index, '0')"
											:class="{ 'active':   item.rightButtonActive == '0'}">
											否
										</view>
										<view class="option" @tap="inspectionContentActive(index, '-1')"
											:class="{ 'active':   item.rightButtonActive == '-1'}">
											合理缺项
										</view>
									</view>
								</view>
							</view>
							<view class="block">
								<view class="li"
									:class="{'float-border' : selectedContent ==  'content' + index + ':' + dataIndex  ? true :false }"
									@tap="contentSelectedStatus(index,dataIndex)"
									v-for="(data,dataIndex) in item.contentList" :key="dataIndex">
									<view class="titles">
										<view class="titles-left">
											<text :class="{'text-red' : data.important === '1' }"
												v-show="data.important === '1'">*</text>
											<view class="text">
												<!-- :class="{'text-red' : data.important === '1' }" -->
												{{item.serialNumber}}.{{data.serialNumber}}&nbsp;&nbsp;{{ data.inspectionContent }}
											</view>
										</view>
									</view>
									<view class="optionList">
										<view class="list">
											<view class="option" :class="{ active: data.contentSelect === '1' }" @tap="inspectionContentToggleActive(
													index,
													dataIndex,
													'是',
													item.TEMPLATE_ID,
													item.ID,
													data.ID,
													1
													)">
												是
											</view>
											<view class="option" :class="{ active: data.contentSelect === '0' }" @tap="inspectionContentToggleActive(
													index,
													dataIndex,
													'否',
													item.TEMPLATE_ID,
													item.ID,
													data.ID,
													2
													)">
												否
											</view>
											<view class="option" v-if="data.existMissing === '1'"
												:class="{ active: data.contentSelect === '-1' }" @tap="inspectionContentToggleActive(
													index,
													dataIndex,
													'合理缺项',
													item.TEMPLATE_ID,
													item.ID,
													data.ID,
													3
													)">
												合理缺项
											</view>
										</view>
										<view class="case">
											<view v-if="data.contentSelect === '0' ">
												<view class="h2">问题描述 ：</view>
												<view class="no-realy-content">
													<view class="content-upload-btn"
														v-if="data.filePath == undefined &&  data.contentSelect === '0' "
														@tap="uploadContentFile(index,dataIndex,
														item.id,
														data.ID)">上传文件</view>
													<view class="content-upload-btn-realy"
														v-if="data.filePath != undefined"
														@tap="showContentFileControls(index,dataIndex, item.ID, data.ID, data.filePath)">
														点击查看</view>
												</view>

												<textarea maxlength="2000" class="problem" placeholder="请输入问题描述"
													v-model="data.problemMsg" placeholder-class="placeholder-class"
													@input="saveInspectionProblemContent($event,index,dataIndex,item.TEMPLATE_ID,
													item.ID,
													data.ID,2)" />
											</view>
											<view v-if="data.contentSelect === '-1'">
												<view class="h2">检查说明：</view>
												<!-- <uni-data-select :value="data.missingValue" :localdata="data.missingList"
													@change="inspectionInstructionsChange($event, index, dataIndex,
													item.TEMPLATE_ID,
													item.ID,
													data.ID,3)" :clear="false"></uni-data-select> -->

												<textarea maxlength="2000" type="text" class="problem"
													placeholder="请输入检查说明" v-model="data.problemMsg"
													placeholder-class="placeholder-class" @input="inspectionInstructionsChangeInput($event,index,dataIndex,item.TEMPLATE_ID,
													item.ID,
													data.ID,3)" />
											</view>
										</view>
									</view>
								</view>
							</view>
						</view>
					</view>
				</view>
				<!-- <view class="addInspectTrisk" v-show="stepList[2].active">
					<view class="positioning">
						<image src="@/static/img/mapActiveTwo.png" />
						<text @tap="companyDimension(addInspectData.lng_lat)"
							v-text="  isLocationPoint(addInspectData.lng_lat) ? '主体已标注':'主体未标注，请进行主体标注【点击开始主体标注】'"></text>
					</view>
					<view class="box">

					</view>
				</view> -->
			</view>
			<view class="fixed">
				<button class="determine" @tap="savePopup('2')">提交</button>
				<button class="cancellation" @tap="savePopup('1')">临时保存</button>
			</view>
		</view>
		<!-- 基础信息-告知单 -->
		<uni-popup ref="noticeForm" type="bottom">
			<view class="noticeFormPopupContent">
				<view class="title">电子告知单</view>
				<view class="h1Title">食品生产日常监督检查</view>
				<view class="h2Ttitle">告知页</view>
				<view class="box">
					<view class="div">
						<view class="titles">被检查单位：</view>
						<text class="value">{{ addInspectData.companyName }}</text>
					</view>
					<view class="div">
						<view class="titles">地址：</view>
						<text class="value">{{ addInspectData.address }}</text>
					</view>
					<view class="div">
						<view class="titles">
							检查人员1
						</view>
						<text click="value">{{ LawEnforcementOfficerOne }}</text>
					</view>
					<view class="div">
						<view class="titles">
							检查人员2
						</view>
						<text click="value">{{ addInspectData.lawEnforcer2 }}</text>
					</view>
					<view class="div">
						<view class="titles">检查时间：</view>
						<text class="value">{{ checkTime }}</text>
					</view>
					<view class="div">
						<view class="titles">检查地点：</view>
						<text class="value">{{ addInspectData.address }}</text>
					</view>
					<view class="div">
						<view class="titles">告知事项：</view>
						<view class="textarea">{{notificationText | notificationFilter(this)}}</view>
					</view>
					<view class="div">
						<view class="titles">
							问：你（单位）
							<text>是否申请回避？</text>
						</view>
						<uni-data-select v-model="applyForAvoidanceValue" :localdata="applyForAvoidanceList"
							:clear="false" :placeholder="'请选择是否回避'"></uni-data-select>
					</view>
					<view class="div">
						<view class="titles">被检查单位签字：</view>
						<view @tap="signatureOne()">点击签字</view>
						<image class="sig-image" v-if="sigOnePic != ''" :src="sigOnePic"></image>
					</view>
					<view class="div">
						<view class="titles">检查人员1签字：</view>
						<view @tap="signatureTwo()">点击签字</view>
						<image class="sig-image" v-if="sigTwoPic != ''" :src="sigTwoPic"></image>
					</view>
					<view class="div">
						<view class="titles">检查人员2签字：</view>
						<view @tap="signatureThree()">点击签字</view>
						<image class="sig-image" v-if="sigThreePic != ''" :src="sigThreePic"></image>
					</view>
				</view>
				<view class="button">
					<button class="determine" @tap="noticeFormDetermine">保存</button>
					<button class="cancellation" @tap="noticeFormCancellation">预览</button>
				</view>
			</view>
		</uni-popup>
		<!-- 显示告知单预览 -->
		<uni-popup ref="popupNotificationTwo" type="bottom">
			<view ref="popupNotificationContent" class="popupContent"
				style="padding: 14px;padding-bottom: 50px;overflow-y: auto;">
				<view id="scrrent-page">
					<view style="text-align: center;font-size: 23px;font-weight: 700;">食品生产日常监督检查</view>
					<view style="text-align: center;font-size: 18px;font-weight: 700;">告知页</view>
					<view style="border: 1px solid #dadada;padding: 10px;margin-top: 20px;">
						<view class="item-text">被检查单位：{{addInspectData.companyName}}</view>
						<view class="item-text">地址：{{addInspectData.address}}</view>
						<view class="item-text">检查人员1：{{LawEnforcementOfficerOne}}</view>
						<view class="item-text">检查人员2：{{addInspectData.lawEnforcer2}}</view>
						<view class="item-text">检查时间：{{checkTime}}</view>
						<view class="item-text">告知事项：{{notificationText | notificationFilter(this)}}</view>
						<view class="item-text"> 问：你（单位）是否申请回避？</view>
						<view class="item-text"> {{applyForAvoidanceList[applyForAvoidanceValue.value]}} </view>
						<view class="item-text">
							检查单位签字: <image class="sig-image" :src="sigOnePic"></image>
						</view>
						<view class="item-text">
							检查人员1签字: <image class="sig-image" :src="sigTwoPic"></image>
						</view>
						<view class="item-text">
							检查人员2签字: <image class="sig-image" :src="sigThreePic"></image>
						</view>
					</view>
					<view style="text-align: center;font-size: 16px;">郑重提示:食品生产者应按相关部门要求，做好安全生产工作，防止生产安全事故，保障人员的生命和财产安全。
					</view>
				</view>
				<view class="button">
					<button class="determine" @click="printNotification">确认</button>
					<button class="cancellation" @click="closeNotification">关闭</button>
				</view>
			</view>
		</uni-popup>
		<!-- 基础信息-风险提示 -->
		<uni-popup ref="riskWarningPopup" type="bottom" :mask-click="false">
			<view class="riskWarningPopupContent">
				<view class="title">风险提示</view>
				<view class="box">
					<view class="div">
						<view class="titles">主体资格</view>
						<view class="state">
							<view class="yes" v-if="riskWarningData.subjectQualification === '0'">
								未发现
							</view>
							<view class="no" v-else>
								有风险
								<image src="/static/img/no.png"></image>
							</view>
						</view>
						<view class="details">
							<text v-if="riskWarningData.subjectQualification === '0'">-</text>
							<text v-else @tap="addInspectriskLook(0)">详情</text>
						</view>
					</view>
					<view class="div">
						<view class="titles">主体标注</view>
						<view class="state">
							<view class="yes" v-if="riskWarningData.bodyCallouts === '0'">
								未发现
							</view>
							<view class="no" v-else>
								有风险
								<image src="/static/img/no.png"></image>
							</view>
						</view>
						<view class="details">
							<text v-if="riskWarningData.bodyCallouts === '0'">-</text>
							<text v-else @tap="addInspectriskLook(1)">详情</text>
						</view>
					</view>
					<view class="div">
						<view class="titles">抽检信息</view>
						<view class="state">
							<view class="yes" v-if="riskWarningData.foodSafe === '0'">
								未发现
							</view>
							<view class="no" v-else>
								有风险
								<image src="/static/img/no.png"></image>
							</view>
						</view>
						<view class="details">
							<text v-if="riskWarningData.foodSafe === '0'">-</text>
							<text v-else @tap="addInspectriskLook(2)">详情</text>
						</view>
					</view>
					<view class="div">
						<view class="titles">处罚信息</view>
						<view class="state">
							<view class="yes" v-if="riskWarningData.punishInfo === '0'">
								未发现
							</view>
							<view class="no" v-else>
								有风险
								<image src="/static/img/no.png"></image>
							</view>
						</view>
						<view class="details">
							<text v-if="riskWarningData.punishInfo === '0'">-</text>
							<text v-else @tap="addInspectriskLook(3)">详情</text>
						</view>
					</view>
					<view class="div">
						<view class="titles">投诉举报</view>
						<view class="state">
							<view class="yes" v-if="riskWarningData.complaintsReport === '0'">
								未发现
							</view>
							<view class="no" v-else>
								有风险
								<image src="/static/img/no.png"></image>
							</view>
						</view>
						<view class="details">
							<text v-if="riskWarningData.complaintsReport === '0'">-</text>
							<text v-else @tap="addInspectriskLook(4)">详情</text>
						</view>
					</view>
					<view class="div">
						<view class="titles">舆情风险</view>
						<view class="state">
							<view class="yes" v-if="riskWarningData.opinionRisk === '0'">
								未发现
							</view>
							<view class="no" v-else>
								有风险
								<image src="/static/img/no.png"></image>
							</view>
						</view>
						<view class="details">
							<text v-if="riskWarningData.opinionRisk === '0'">-</text>
							<text v-else @tap="addInspectriskLook(5)">详情</text>
						</view>
					</view>
					<view class="div" v-if="riskWarningData.packageSupervision != '0'">
						<view class="titles">包保督导</view>
						<view class="state">
							<view class="no">
								有风险
								<image src="/static/img/no.png"></image>
							</view>
						</view>
						<view class="details">
							<text @tap="addInspectriskLook(6)">详情</text>
						</view>
					</view>
					<view class="buttonBg">
						<!-- <button class="determine" style="position: static" @tap="IAlreadyKnow">我已知晓</button> -->
						<button class="determine" @tap="IAlreadyKnow">我已知晓</button>
					</view>
				</view>
			</view>
		</uni-popup>
		<!-- 风险提示-查看详情 -->
		<uni-popup ref="riskReminderDetails" type="bottom">
			<view class="riskReminderDetailsContent">
				<view class="title">风险提示</view>
				<view class="box">
					<view class="illustrate">
						<view class="content" v-for="(item, index) in addInspectriskLookData" :key="index">
							{{ item.text }}
						</view>
					</view>
				</view>
				<view class="closeReturn" @tap="riskReminderDetailsClose">返回</view>
			</view>
		</uni-popup>
		<!-- 提交弹窗 -->
		<uni-popup ref="popupTwo" type="bottom">
			<view class="popupContent">
				<view class="title">确定</view>
				<view class="box">
					提交当前检查？
				</view>
				<view class="button" style="padding-bottom:20px;">
					<button class="determine" @click="determineTwo">确认</button>
					<button class="cancellation" @click="cancellationTwo">返回</button>
				</view>
			</view>
		</uni-popup>
		<!-- 要点表 -->
		<uni-popup ref="resultLog" type="bottom" :mask-click="false">
			<view class="popupContent" style="padding-bottom: 20px;">
				<view class="title">结果记录</view>
				<view class="box">
					<view class="box-item" style="margin-top: 10px;">
						<view class="box-item-left">
							<view style="width: 150px;text-align: left;"><text>结果记录表:</text></view>
							<image :src="jieguojilu == '' ? '/static/img/no-pic.png' : baseUrl + jieguojilu"
								style="width: 100px;height: 100px;" @tap="showImage(jieguojilu)"></image>
						</view>
						<text class="btna" @tap="resultTable()">生成结果记录表</text>
					</view>
					<!-- <view class="box-item" @tap="pointCheck" style="text-align: center;display: flex;align-items: center;justify-content: center;margin-top: 20px;">
						<text v-if="checkDistance <= distance" class="location-status"  >您在检查区域内</text>
						<text v-if="checkDistance > distance" class="location-active"   >您不在检查区域内</text>
					</view> -->
				</view>
				<view class="button">
					<button class="determine" @click="finalConfirm()">确认</button>
					<button class="cancellation" @click="closeResultLog()">取消</button>
				</view>
			</view>
		</uni-popup>
		<screenshot ref="screenshot" :screenId="'scrrent-page'" @renderFinish="getScreenImg"></screenshot>
	</view>
</template>

<script>
	import longscreen from '@/components/screenShot.vue'
	import jsPDF from 'jspdf';
	import html2canvas from 'html2canvas';
	import {
		number
	} from 'echarts';
	import commonNavBar from '@/components/CommonNavBar.vue';

	export default {
		components: {
			commonNavBar,
			'screenshot': longscreen
		},
		data() {
			return {
				baseUrl: uni.$baseUrl,
				selectedContent: null, //被选中的检查内容
				checkResultStatus: '0', //检查结果可选
				checkDistance: 0, //监察人与企业的距离
				distance: 0, //规定检查人与企业多少范围内可提交数据
				supProcess: '', //规定检查人与企业多少范围内可提交数据
				yaodianbiao: '',
				jieguojilu: '',
				checkId: '', //检查id，在临时保存之后会获取到
				sigOnePic: '',
				sigTwoPic: '',
				sigThreePic: '',
				checkBasis: '’', //检查指南中的检查依据
				checkGuide: '', //检查指南中的检查方式
				checkMethod: '', //检查指南中的检查指南
				checkProblem: '', //检查指南中的常见问题
				errNum: 0, //选择否的
				emphasisNum: 0, //重点项问题数
				generalNum: 0, //一般项问题数
				totalEmphasisNum: 0, //一般项问题数选择异常的时候拉满
				totalGeneralNum: 0, //一般项问题数选择异常的时候拉满
				companyId: null, //企业id
				checkNum: 0, //检查次数
				checkContentRiskList: [], //检查内容对应的检查风险
				userList: [],
				distanceName: "",
				stepList: [{
					step: '基础信息',
					active: true
				}, {
					step: '检查内容',
					active: false
					// }, {
					// 	step: '风险提示',
					// 	active: false
				}],
				addInspectData: {
					companyInfo: {
						COMANY_PIC: '',

					},
					superviseInfo: {
						deptName: ''
					}
				},
				inspectTime: '',
				businessStatusList: [{
						id: '0',
						option: '正常',
						isChecked: true
					},
					{
						id: '1',
						option: '异常',
						isChecked: false
					}
				],
				abnormalCauseList: [{
					value: "不在注册地经营",
					text: "不在注册地经营"
				}],
				applyForAvoidanceValue: 0,
				applyForAvoidanceList: [{
						value: 0,
						text: "否"
					},
					{
						value: 1,
						text: "是"
					},
				],
				rectificationSituationDataList: [],
				activeIndex: [],
				activeOption: [],
				inspectionInstructionsList: [{
						value: "仅销售预包装食品，无需取得食品经营许可",
						text: "仅销售预包装食品，无需取得食品经营许可"
					},
					{
						value: "自定义备注",
						text: "自定义备注"
					},
				],
				riskWarningData: {},
				addInspectriskLookData: [],
				taskAssociationList: [],
				notificationText: uni.$notificationText,
				taskAssociationChangeList: [],
				checkStatus: null,
				LawEnforcementOfficerOne: '',
				LawEnforcementOfficerOneDeptId: '',
				checkTime: '',
				lawEnforcer1Value: '',
				lawEnforcer2Value: '',
				falseCount: 0,
				serialNum: null,
				disableOptions: {
					'0': false,
					'1': false,
					'2': false
				},
				disableOptionsNew: {
					'0': false,
					'1': false,
					'2': false
				},
				rectificationTimeLimit: ''
			}
		},
		onLoad(options) {
			const that = this;
			this.checkId = options.checkId == 'undefined' ? null : options.checkId
			this.companyId = options.companyId == 'undefined' ? null : options.companyId
			this.checkNum = options.checkNum == 'undefined' ? null : options.checkNum
			this.supProcess = options.supProcess == 'undefined' ? null : options.supProcess
			this.checkStatus = options.checkStatus == 'undefinde' ? null : options.checkStatus
			this.inspectId = options.inspectId == 'undefinde' ? null : options.inspectId
			this.status = options.status == 'undefinde' ? null : options.status
			this.serialNum = options.serialNum == 'undefinde' ? null : options.serialNum
		},
		async onReady() {
			//this.$refs.resultLog.open();
			// 初始日期
			const currentDate = new Date();
			const year = currentDate.getFullYear();
			const month = String(currentDate.getMonth() + 1).padStart(2, '0');
			const day = String(currentDate.getDate()).padStart(2, '0');
			const formattedDate = `${year}-${month}-${day}`;
			this.inspectTime = formattedDate
			// 基础信息数据
			this.basicInformationData();
			//获取监管用户信息
			// this.loadUserList();
			// 风险提示数据
			this.riskWarning()
			// 任务关联
			if (this.supProcess == 'spxs' || this.supProcess == 'cyfw') {
				this.taskAssociationOpen()
			}

		},
		filters: {
			notificationFilter(value, that) {
				return value.replace(/\${([^}]+)}/g, that.addInspectData.deptName);
			},
			// userNameFilter(value,that){
			// 	for (var i = 0; i < that.userList.length; i++) {
			// 		if(that.userList[i].id == value){
			// 			return that.userList[i].text;
			// 		}
			// 	}
			// 	return '';
			// },
			filePathFilter(value) {
				if (value.indexOf("base64") <= 0) {
					return uni.$baseUrl + value;
				} else {
					return value;
				}
			}
		},
		methods: {
			// 获取基础信息数据
			async basicInformationData() {
				const that = this;
				uni.showLoading({
					title: '加载页面数据',
					mask: true

				})
				const res = await uni.$api.productionInspectGetCompanyInfo({
					companyId: this.companyId
				})
				if (res.data.code != 0) {
					uni.hideLoading();
					uni.showModal({
						title: '警告',
						content: res.data.message,
						showCancel: false,
					})
					return;
				}
				that.addInspectData = res.data.data
				that.LawEnforcementOfficerOne = uni.getStorageSync('loginLawEnforcementOfficerOne')
				that.LawEnforcementOfficerOneDeptId = uni.getStorageSync('loginLawEnforcementOfficerOneDeptId')
				that.lawEnforcer1Value = uni.getStorageSync('loginLawEnforcementOfficerOneValuetId')
				var date = new Date();
				var year = date.getFullYear();
				var month = date.getMonth() + 1;
				var day = date.getDate();
				month = month.toString().padStart(2, '0');
				day = day.toString().padStart(2, '0');
				that.checkTime = `${year}-${month}-${day}`
				// 执法人员2列表
				that.getLawEnforcementOfficerTwo();
				// 检查内容可选数据
				this.rectificationSituationData();
				// 检查结果
				if (this.addInspectData.accordCount === undefined) {
					// this.$set(this.addInspectData, 'accordCount', '0');
				}
				// if(this.addInspectData.CHECK_RESULTS === undefined) {
				// 	this.$set(this.addInspectData, 'CHECK_RESULTS', '0');
				// }
				// 企业未标注不校验距离/
				let lngLat = that.addInspectData.lngLat + '';
				if (lngLat != 'undefined' && lngLat != undefined) {
					that.checkDistance = await uni.$mapUtil.getPointDistance(lngLat.split(',')[1], lngLat.split(',')[
						0]);
				}
				uni.hideLoading();
			},
			// 执法人员2列表
			async getLawEnforcementOfficerTwo() {
				const res = await uni.$api.productionInspectgetUserList({
					deptId: this.LawEnforcementOfficerOneDeptId
				})
				this.userList = res.data.data;
			},
			// 基础信息选项执法人员2选择
			lawEnforcementOfficialsTwo(value) {
				const that = this;
				const selectedUser = this.userList.find(user => user.value === value);
				this.lawEnforcer2Value = value
				that.$set(this.addInspectData, "lawEnforcer2", selectedUser.text)
			},
			// async loadUserList(){
			// 	//获取监管人员信息
			// 	const useRes = await uni.$api.getSupervisePersonList();
			// 	this.userList = useRes.data.data;
			// },
			// 基础信息经营状态是否正常
			businessStatusRadioChange(option) {
				this.$set(this.addInspectData, "manageStatus", option.detail.value)

				if (option.detail.value == '1') {
					this.disableOptions = {
						'0': true,
						'1': true,
						'2': false
					};
					this.$set(this.addInspectData, "accordCount", '2');
					this.$set(this.addInspectData, "CHECK_RESULTS", '2');
				} else {
					this.disableOptions = {
						'0': false,
						'1': false,
						'2': false
					};
					this.$set(this.addInspectData, "accordCount", '0');
					this.$set(this.addInspectData, "CHECK_RESULTS", '0');
				}
			},
			// 基础信息异常原因选项
			// abnormalCauseChange(e) {
			// 	this.$set(this.addInspectData.companyInfo,'ABNORMAL_CAUSE',e);
			// },
			// 基础信息整改时间选择日期
			rectificationTimeClick(e) {
				this.rectificationTimeLimit = e.target.value;
				// 	this.$set(this.addInspectData.companyInfo,'RECTIFY_TIME',e.target.value);
			},
			showNoticeControl(filePath) {
				const that = this;
				console.log(filePath)
				if (filePath == undefined || filePath == 'undefined') {
					that.noticeFormOpen();
					return;
				}
				uni.showActionSheet({
					itemList: ['查看文件', '重新生成'],
					title: '选择操作',
					success: function(res) {
						if (res.tapIndex == 0) {
							Vue.prototype.$previewImage(filePath);
						} else if (res.tapIndex == 1) {
							that.noticeFormOpen();
						}
					}
				})
			},
			// 基础信息告知页
			noticeFormOpen() {
				const that = this;
				uni.showActionSheet({
					itemList: ['生成告知单', '选择文件'],
					title: '选择操作',
					success: function(res) {
						if (res.tapIndex == 0) {
							console.log('res2', res)
							that.$refs.noticeForm.open('bottom');
						} else if (res.tapIndex == 1) {
							console.log('res3', res)
							uni.chooseImage({
								count: 1,
								// sourceType:['camera'],
								success: (e) => {
									uni.uploadFile({
										url: uni.$baseUrl + 'pro/ratingScore/uploadImg',
										filePath: e.tempFilePaths[0],
										name: 'file',
										success: (uploadFileRes) => {
											const obj = JSON.parse(uploadFileRes.data);
											uni.hideLoading();
											if (obj.code == '0') {
												that.$set(that.addInspectData,
													"informUrl", obj.data.filePath);
												that.$forceUpdate()
												uni.showModal({
													content: '保存成功,告知单图片已自动存储到相册',
													title: '提示',
													showCancel: false,
													success: function() {
														that.$refs
															.popupNotificationTwo
															.close();
														that.$refs
															.noticeForm
															.close();
													}
												})
											} else {
												uni.showToast({
													icon: 'success',
													title: '告知单存储失败'
												})
											}
										}
									});
								},
								fail: () => {
									uni.showToast({
										icon: 'error',
										title: '图片选择错误'
									})
								}
							})
						}
					}
				})

			},
			// 基础信息告知页保存
			noticeFormDetermine() {

				if (this.sigOnePic == '' || this.sigOnePic == undefined) {
					uni.showToast({
						title: '请完成签名',
						icon: 'none'
					})
					return;
				}

				if (this.sigTwoPic == '' || this.sigTwoPic == undefined) {
					uni.showToast({
						title: '请完成签名',
						icon: 'none'
					})
					return;
				}

				if (this.sigThreePic == '' || this.sigThreePic == undefined) {
					uni.showToast({
						title: '请完成签名',
						icon: 'none'
					})
					return;
				}

				this.$refs.popupNotificationTwo.open();
			},
			// 基础信息告知页预览打印
			noticeFormCancellation() {
				if (this.sigOnePic == '' || this.sigOnePic == undefined) {
					uni.showToast({
						title: '请完成签名',
						icon: 'none'
					})
					return;
				}

				if (this.sigTwoPic == '' || this.sigTwoPic == undefined) {
					uni.showToast({
						title: '请完成签名',
						icon: 'none'
					})
					return;
				}

				if (this.sigThreePic == '' || this.sigThreePic == undefined) {
					uni.showToast({
						title: '请完成签名',
						icon: 'none'
					})
					return;
				}
				this.$refs.popupNotificationTwo.open();
			},
			printNotification() {
				const that = this;
				uni.showLoading({
					title: '正在生成',
					mask: true
				})

				//将告知单存储页面生成图片保存到相册并上传到服务器
				this.$refs.screenshot.startScreen();
			},
			getScreenImg(res) {
				console.log('res1', res)
				//生成告知单图片的
				const that = this;
				//根据传输过来的id 和选中的图片传到后台直接保存
				uni.saveImageToPhotosAlbum({
					filePath: res.posterPath,
					success: function() {
						uni.hideLoading();
						uni.showLoading({
							title: '正在保存告知单信息',
							mask: true
						})
						uni.uploadFile({
							url: uni.$baseUrl + 'pro/ratingScore/uploadImg',
							filePath: res.posterPath,
							name: 'file',
							success: (uploadFileRes) => {
								console.log('uploadFileRes1', uploadFileRes)
								const obj = JSON.parse(uploadFileRes.data);
								uni.hideLoading();
								if (obj.code == '0') {
									that.$set(that.addInspectData, "informUrl", obj.data.filePath);
									uni.showModal({
										content: '保存成功,告知单图片已自动存储到相册',
										title: '提示',
										showCancel: false,
										success: function() {
											that.$refs.popupNotificationTwo.close();
											that.$refs.noticeForm.close();
										}
									})
								} else {
									uni.showToast({
										icon: 'success',
										title: '告知单存储失败'
									})
								}
							}
						});
					},
					fail: () => {
						uni.hideLoading();
						uni.showToast({
							icon: 'error',
							title: '请给与相册权限，否则告知单将无法存贮在手机中'
						})
					}
				})

			},

			// 关闭告知页预览打印
			closeNotification() {
				this.$refs.popupNotificationTwo.close()
			},
			// 检查内容处理结果
			handleRadioChange(option) {
				this.$set(this.addInspectData, 'CHECK_RESULTS', option.target.value);
			},
			// 检查内容检查结果
			accordRadioChange(option) {
				this.$set(this.addInspectData, 'accordCount', option.target.value);
			},
			shutdownDescription(e) {
				this.$set(this.addInspectData, 'shutdownDescription', e.detail.value)
			},
			// 检查内容可选数据
			async rectificationSituationData() {
				const that = this;
				let data = {
					token: uni.getStorageSync(uni.$Call.token)
				}

				if (this.status === '-1') {
					const res = await uni.$api.productionInspectgetDailyScoreInfo({
						'dailyScoreId': this.inspectId
					});
					uni.hideLoading()
					var dataList = res.data.data.itemList;
					dataList.forEach(item => {
						item.contentList.forEach(content => {
							const updatedContent = {
								...content,
								contentSelect: content.selected
							};
							delete updatedContent.selected;
							const index = item.contentList.indexOf(content);
							item.contentList[index] = updatedContent;
						});
					});
					// console.log('res.data.data', res.data.data.dailyScore)
					that.addInspectData.informUrl = res.data.data.dailyScore.informUrl;
					that.addInspectData.accordCount = res.data.data.dailyScore.checkResult;
					that.addInspectData.CHECK_RESULTS = res.data.data.dailyScore.handleResult;
					that.lawEnforcer2Value = res.data.data.dailyScore.lawEnforcerId2;
					that.rectificationSituationDataList = dataList;
				} else {
					const res = await uni.$api.productionInspectgetDailyInspectionItemList(data);
					uni.hideLoading()
					var dataList = res.data.data;
					dataList.forEach(item => {
						item.contentList.forEach(content => {
							content.contentSelect = '';
						});
					});
					that.rectificationSituationDataList = dataList;
				}
			},
			// 检查内容记录表选项选中状态
			// async inspectionContentToggleActive(index, dataIndex, option, templateId, standardId, contentId, result) {
			// 	var d = this.rectificationSituationDataList[index].contentList[dataIndex];
			// 	if (option === '是') {
			// 		this.$set(d, "contentSelect", '1');
			// 	} else if (option === '否') {
			// 		this.$set(d, "contentSelect", '0');
			// 	} else if (option === '合理缺项') {
			// 		this.$set(d, "contentSelect", '-1');
			// 	}

			// 	let allYes = true;
			// 	let hasNoOrReasonable = false;
			// 	let falseList = []
			// 	for (var i = 0; i < this.rectificationSituationDataList.length; i++) {
			// 		for (var y = 0; y < this.rectificationSituationDataList[i].contentList.length; y++) {
			// 			let contentSelect = this.rectificationSituationDataList[i].contentList[y].contentSelect;
			// 			if (contentSelect !== '1' && contentSelect !== '') {
			// 				allYes = false;
			// 				if (contentSelect === '0' || contentSelect === '-1') {
			// 					hasNoOrReasonable = true;
			// 					falseList.push(this.rectificationSituationDataList[i].contentList[y])
			// 				}
			// 				break;
			// 			}
			// 		}
			// 		if (!allYes || hasNoOrReasonable) break;
			// 	}
			// 	this.falseCount = falseList.length
			// 	if (this.falseCount > 0) {
			// 		if (this.addInspectData.CHECK_RESULTS == '0' || this.addInspectData.CHECK_RESULTS === undefined) {
			// 			this.$set(this.addInspectData,"CHECK_RESULTS",'1')
			// 		}

			// 	} else {
			// 		this.$set(this.addInspectData,"CHECK_RESULTS",'0')
			// 	}
			// 	this.$forceUpdate()
			// 	console.log('this.addInspectData.CHECK_RESULTS', this.addInspectData.CHECK_RESULTS)
			// 	console.log('this.addInspectData.accordCount', this.addInspectData.accordCount)
			// },
			async inspectionContentToggleActive(index, dataIndex, option) {
				var d = this.rectificationSituationDataList[index].contentList[dataIndex];

				if (option === '是') {
					this.$set(d, "contentSelect", '1');
				} else if (option === '否') {
					this.$set(d, "contentSelect", '0');
				} else if (option === '合理缺项') {
					this.$set(d, "contentSelect", '-1');
				}

				this.loadResultBtn();
				console.log('this.addInspectData.CHECK_RESULTS', this.addInspectData.CHECK_RESULTS);
				console.log('this.addInspectData.accordCount', this.addInspectData.accordCount);
			},
			loadResultBtn() {
				this.$set(this.addInspectData, "accordCount", '0');
				this.$set(this.addInspectData, "CHECK_RESULTS", '0');

				let hasImportantNo = this.rectificationSituationDataList.some(itemGroup =>
					itemGroup.contentList.some(content => content.important === '1' && content.contentSelect === '0')
				);
				let hasNonImportantNo = this.rectificationSituationDataList.some(itemGroup =>
					itemGroup.contentList.some(content => content.important === '0' && content.contentSelect === '0')
				);

				if (hasImportantNo) {
					this.disableOptions = {
						'0': true,
						'1': true,
						'2': false
					};
					this.disableOptionsNew = {
						'0': true,
						'1': true,
						'2': false
					};
				} else if (hasNonImportantNo && !hasImportantNo) {
					this.disableOptions = {
						'0': true,
						'1': false,
						'2': false
					};
					this.disableOptionsNew = {
						'0': true,
						'1': false,
						'2': false
					};
				} else {
					this.disableOptions = {
						'0': false,
						'1': false,
						'2': false
					};
					this.disableOptionsNew = {
						'0': false,
						'1': false,
						'2': false
					};
				}

				if (hasImportantNo) {
					this.$set(this.addInspectData, "accordCount", '2');
					this.$set(this.addInspectData, "CHECK_RESULTS", '2');
				} else if (hasNonImportantNo && !hasImportantNo) {
					this.$set(this.addInspectData, "accordCount", '1');
					this.$set(this.addInspectData, "CHECK_RESULTS", '1');
				}

				if (this.addInspectData.accordCount != '2' || this.addInspectData.CHECK_RESULTS != '2') {
					this.rectificationTimeLimit = '';
				}

				this.$forceUpdate();
			},
			contentSelectedStatus(index, dataIndex) {
				this.selectedContent = 'content' + index + ':' + dataIndex;
			},
			// 选否-问题描述输入框
			async saveInspectionProblemContent(e, index, dataIndex, templateId, standardId, contentId, result) {
				const that = this;
				var d = this.rectificationSituationDataList[index].contentList[dataIndex];
				this.$set(d, "problemMsg", e.detail.value)
			},
			// 选合理缺项-检查说明输入框
			async inspectionInstructionsChangeInput(e, index, dataIndex, templateId, standardId, contentId, result) {
				var d = this.rectificationSituationDataList[index].contentList[dataIndex];
				this.$set(d, "problemMsg", e.detail.value)
			},
			// 选择否-自定义的时候上传文件信息
			async uploadContentFile(index, dataIndex, standardId, contentId) {
				const that = this;
				uni.chooseImage({
					count: 1,
					success: (e) => {
						uni.uploadFile({
							url: uni.$baseUrl + 'pro/ratingScore/uploadImg',
							filePath: e.tempFilePaths[0],
							name: 'file',
							success: (uploadFileRes) => {
								const obj = JSON.parse(uploadFileRes.data);
								uni.hideLoading();
								if (obj.code == '0') {
									that.$set(that.rectificationSituationDataList[index]
										.contentList[dataIndex], "filePath", obj.data
										.filePath);
									that.$set(that.rectificationSituationDataList[index]
										.contentList[dataIndex], "filePicture", obj.data
										.filePicture);
									uni.showModal({
										content: '保存成功',
										title: '提示',
										showCancel: false
									})
								} else {
									uni.showToast({
										icon: 'success',
										title: '存储失败'
									})
								}
							}
						});
					},
					fail: () => {
						uni.showToast({
							icon: 'error',
							title: '图片选择错误'
						})
					}
				})
			},
			showContentFileControls(index, dataIndex, standardId, contentId, filePath) {
				//检查内容选否之后上传文件后点击弹出选择查看文件还是上传文件
				const that = this;
				uni.showActionSheet({
					itemList: ['查看文件', '重新上传'],
					title: '选择操作',
					success: function(res) {
						if (res.tapIndex == 0) {
							Vue.prototype.$previewImage(filePath);
						} else if (res.tapIndex == 1) {
							that.uploadContentFile(index, dataIndex, standardId, contentId);
						}
					}
				})


			},
			// 检查内容记录表选项-合理缺项下拉选择框
			async inspectionInstructionsChange(e, index, dataIndex, templateId, standardId, contentId, result) {
				var d = this.rectificationSituationDataList[index].contentList[dataIndex];
				const selectedOption = d.missingList.find(option => option.value === e);
				if (this.status === '-1') {
					this.$set(d, "missingItemContent", selectedOption.missingId);
				} else {
					this.$set(d, "missingItemContent", e);
				}
			},
			// 风险提示数据
			async riskWarning() {
				let data = {
					companyId: this.companyId,
				}

				try {
					const res = await uni.$api.getCompanyRiskInfo(data);
					this.riskWarningData = res.data.data

					// 风险提示-弹窗
					if (Object.keys(this.riskWarningData).length !== 0) {
						this.riskWarningPopup()
					}
				} catch (error) {
					console.error(error)
				}
			},
			// 风险提示-查看详情
			async addInspectriskLook(number) {
				let data = {
					companyId: this.companyId,
					riskType: number
				}

				try {
					const res = await uni.$api.getRiskInfo(data);
					this.addInspectriskLookData = res.data.data
					if (this.$refs.riskReminderDetails) {
						this.$refs.riskReminderDetails.open('bottom')
					}
				} catch (error) {
					console.error(error)
				}
			},
			// 风险提示-查看详情-返回
			riskReminderDetailsClose() {
				this.$refs.riskReminderDetails.close();
			},
			// 任务关联
			async taskAssociationOpen() {
				//获取是否有其他待完成的日常和专项检查可进行合并
				const res = await uni.$api.getSpecialInspectList({
					companyId: this.companyId
				});
				if (res.data.code == '0') {
					if (this.$refs.taskAssociation && res.data.data.length > 0) {
						for (var i = 0; i < res.data.data.length; i++) {
							this.taskAssociationList.push({
								id: res.data.data[i].ID,
								title: res.data.data[i].TASK_NAME
							});
						}
						this.$refs.taskAssociation.open('bottom')
					}
				}

			},
			// 任务关联-选中
			taskAssociationChange(item) {
				const index = this.taskAssociationChangeList.findIndex((selectedItem) => selectedItem === item.id);
				if (index >= 0) {
					this.taskAssociationChangeList.splice(index, 1);
				} else {
					this.taskAssociationChangeList.push(item.id);
				}
			},
			// 任务关联-确认按钮
			taskAssociationDetermine() {
				this.$refs.taskAssociation.close('bottom')
			},
			// 任务关联-取消按钮
			taskAssociationCancellation() {
				this.$refs.taskAssociation.close('bottom')
			},
			// 基础信息-风险提示弹窗
			riskWarningPopup() {
				if (this.$refs.riskWarningPopup) {
					this.$refs.riskWarningPopup.open('bottom')
				}
			},
			// 基础信息-风险提示弹窗-我已知晓
			IAlreadyKnow() {
				this.$refs.riskWarningPopup.close('bottom')
			},
			// 检查内容-操作指南
			inspectionGuidelines(checkBasis, //检查指南中的检查依据
				checkGuide, //检查指南中的检查方式
				checkMethod, //检查指南中的检查指南
				checkProblem) {
				this.checkBasis = checkBasis
				this.checkGuide = checkGuide
				this.checkMethod = checkMethod
				this.checkProblem = checkProblem
				if (this.$refs.inspectionGuidelines) {
					this.$refs.inspectionGuidelines.open('bottom')
				}
			},
			// 检查内容-操作指南-关闭
			inspectionGuidelinesClose() {
				this.$refs.inspectionGuidelines.close('bottom')
			},
			//保存数据
			async savePopup(type) {
				this.saveType = type
				if (type == '1') {
					//临时保存
					this.determineTwo();
					return;
				}
				uni.showLoading({
					title: '校验位置'
				})
				let lngLat = this.addInspectData.lngLat + '';
				if (lngLat == undefined || lngLat == 'undefined') {
					uni.showToast({
						title: '企业位置未标注',
						icon: 'error',
						duration: 5000
					})
					return
				}
				// 当前企业与设备的距离
				this.checkDistance = await uni.$mapUtil.getPointDistance(lngLat.split(',')[1], lngLat.split(',')[0]);
				uni.hideLoading();
				if (this.checkDistance > this.addInspectData.distance) {
					uni.showToast({
						title: '不在检查范围',
						icon: 'error',
						duration: 5000
					})
					return;
				}
				if (type != '1') {
					//表单填写验证
					// if(this.LawEnforcementOfficerOne == '' || this.LawEnforcementOfficerOne == undefined){
					// 	uni.showToast({
					// 		title:'请选择执法人员1',
					// 		icon : 'none'
					// 	})
					// 	return;
					// }
					if (this.lawEnforcer2Value == '' || this.lawEnforcer2Value == undefined) {
						uni.showToast({
							title: '请选择执法人员2',
							icon: 'none'
						})
						return;
					}
					if (this.addInspectData.manageStatus == '' || this.addInspectData.manageStatus == undefined) {
						uni.showToast({
							title: '请选择经营状态',
							icon: 'none'
						})
						return;
					}

					// if (this.addInspectData.informUrl == '' || this.addInspectData.informUrl == undefined) {
					if (this.addInspectData.manageStatus === '0' && (this.addInspectData.informUrl == '' || this
							.addInspectData.informUrl == undefined)) {
						uni.showToast({
							title: '请上传告知页内容',
							icon: 'none'
						})
						return;
					}

					if (this.addInspectData.manageStatus == '0') {
						//非异常情况
						// if(this.addInspectData.selected == ''  || this.addInspectData.selected  == undefined ){
						// 	uni.showToast({
						// 		title:'请选择检查内容中的处理结果',
						// 		icon : 'none'
						// 	})
						// 	return;
						// }
						//检查内容是否全部选择
						const itemList = this.rectificationSituationDataList;
						for (var y = 0; y < itemList.length; y++) {
							const contentList = itemList[y].contentList;
							for (var i = 0; i < contentList.length; i++) {
								if (contentList[i].contentSelect === '' || contentList[i].contentSelect ===
									undefined) {
									uni.showToast({
										title: `${itemList[y].serialNumber}.${contentList[i].serialNumber}存在检查内容还未处理`,
										icon: 'none'
									})
									return;
								} else {
									if (contentList[i].contentSelect != '' && contentList[i].contentSelect === '0') {
										if (contentList[i].filePath === undefined || contentList[i].filePath === '') {
											uni.showToast({
												title: `${itemList[y].serialNumber}.${contentList[i].serialNumber}选择否的检查内容需要上传文件信息`,
												icon: 'none'
											})
											return;
										}
										if (contentList[i].problemMsg === undefined || contentList[i].problemMsg ===
											'') {
											uni.showToast({
												title: `${itemList[y].serialNumber}.${contentList[i].serialNumber}有检查内容的问题描述信息未填写`,
												icon: 'none'
											})
											return;
										}
									} else if (contentList[i].contentSelect != '' && contentList[i].contentSelect ===
										'-1') {
										console.log('contentList[b]', contentList[i].missingItemContent)
										// if (contentList[i].missingItemContent === undefined || contentList[i]
										// 	.missingItemContent === '') {
										// 	uni.showToast({
										// 		title: `${itemList[y].serialNumber}.${contentList[i].serialNumber}有检查内容合理缺项问题未选`,
										// 		icon: 'none'
										// 	})
										// 	return;
										// }
									}
								}
							}
						}
					}

					if ((this.addInspectData.CHECK_RESULTS != undefined && this.addInspectData.CHECK_RESULTS != '0') &&
						(this.rectificationTimeLimit == '' || this.rectificationTimeLimit == undefined)) {
						uni.showToast({
							title: '请选择整改时间',
							icon: 'none'
						})
						return;
					}
				}
				//长期停产就不需要生成检查结果记录表了
				if (this.addInspectData.manageStatus == '0') {
					this.$refs.popupTwo.open('bottom')
				} else {
					this.finalConfirm()
				}
			},
			//取消保存
			cancellationTwo() {
				this.$refs.popupTwo.close()
			},
			async determineTwo() {
				const that = this;
				if (that.saveType === '1') {
					that.finalConfirm()
				} else {
					that.$refs.resultLog.open();
				}
			},
			closeResultLog() {
				this.$refs.resultLog.close();
			},
			async finalConfirm() {
				const that = this;
				let companyId = that.companyId;
				let totalRiskNoScore = 0;
				let totalRiskYesScore = 0;

				if (this.addInspectData.manageStatus == '0' && (this.jieguojilu == '' || this.jieguojilu ==
					undefined)) {
					uni.showToast({
						title: '请上传结果记录表',
						icon: 'none'
					})
					return;
				}
				const filteredItems = that.rectificationSituationDataList.reduce((acc, item) => {
					const filteredContentList = item.contentList.filter(content => content.contentSelect ===
						'-1' || content.contentSelect === '0');
					filteredContentList.forEach(content => {
						const newItem = {
							id: this.status === '-1' ? content.contentId : content.id,
							selected: content.contentSelect
						};

						if (content.contentSelect === '-1') {
							if (this.status === '-1') {
								const selectedMissingItem = content.missingList && content.missingList
									.filter(missing => missing.selected === '1');
								if (selectedMissingItem.length > 0) {
									newItem.missingSelectId = selectedMissingItem[0].missingId
								}
							} else {
								newItem.missingSelectId = content.missingItemContent;
							}
							if (content.problemMsg) {
								newItem.problemMsg = content.problemMsg;
							}
						} else if (content.contentSelect === '0') {
							if (content.problemMsg) {
								newItem.problemMsg = content.problemMsg;
							}
							if (content.filePath) {
								newItem.filePath = content.filePath;
							}
							if (content.filePicture) {
								newItem.filePicture = content.filePicture;
							}
						}

						acc.push(newItem);

						totalRiskNoScore += content.riskNoScore;
						totalRiskYesScore += content.riskYesScore;
					});
					return acc;
				}, []);
				try {
					uni.showLoading({
						title: '正在生成数据，请稍后',
						mask: true
					})

					let requestData = {
						'id': Number(that.inspectId),
						'lawEnforcer1': that.LawEnforcementOfficerOne,
						'lawEnforcer2': that.addInspectData.lawEnforcer2,
						'ratingDate': that.checkTime,
						'dailyScore': totalRiskNoScore + totalRiskYesScore,
						'contentSelect': JSON.stringify(filteredItems),
						'checkResult': that.addInspectData.accordCount,
						'handleResult': that.addInspectData.CHECK_RESULTS,
						'proStatus': that.addInspectData.manageStatus,
						'lawEnforcerId1': that.lawEnforcer1Value,
						'lawEnforcerId2': that.lawEnforcer2Value,
						'gistUrl': that.jieguojilu,
						'rectificationTimeLimit': that.rectificationTimeLimit
					};
					if (this.inspectId === undefined) {
						requestData['companyId'] = Number(this.companyId);
						delete requestData.id
					}
					if (this.addInspectData.informUrl !== undefined) {
						requestData['informUrl'] = this.addInspectData.informUrl;
					}
					if (this.manageStatus === '1') {
						requestData['disReason'] = this.addInspectData.shutdownDescription;
					}
					if (this.saveType === '1') {
						requestData['status'] = '-1';
					} else if (this.saveType === '2') {
						requestData['status'] = '1';
					}
					const res = await uni.$api.productionInspectgetDailyScore(requestData);
					uni.showToast({
						title: this.saveType === '1' ? `临时保存${res.data.message}` : `保存${res.data.message}`,
						icon: 'success',
						image: '/static/img/success.png',
						duration: 2000,
					});
					const eventChannel = that.getOpenerEventChannel();
					eventChannel.emit('reloadList');
					uni.navigateBack()
					// uni.redirectTo({
					// 	url: '/pages/inspect/inspect?index=0'
					// });
					// this.$refs.popupTwo.close();
					this.$refs.resultLog.close();
					uni.hideLoading();
				} catch (error) {
					console.error(error)
				}
			},
			//认证主体是否已经标注
			isLocationPoint(lng_lat) {
				if (lng_lat != undefined && lng_lat != '' && lng_lat != 'undefined') {
					return true;
				} else {
					return false;
				}
			},
			//验证坐标距离
			async checkDistanceFun() {
				let lngLat = this.addInspectData.lngLat + '';
				//当前企业与设备的距离
				this.checkDistance = await uni.$mapUtil.getPointDistance(lngLat.split(',')[1], lngLat.split(',')[0]);
				uni.hideLoading();
				if (this.checkDistance > this.addInspectData.distance) {
					let num = this.checkDistance - this.addInspectData.distance;
					let fruitArray = lngLat.split(",");
					this.distanceName = "当前位置坐标:" + parseFloat(fruitArray[0].toString()).toFixed(6) + "," + parseFloat(
							fruitArray[1].toString()).toFixed(6) + "，距离主体" + num.toFixed(2) +
						"米(G)(超出范围)";
					return false;
				} else {
					this.distanceName = "当前已经在检查范围内";
					return true;
				}
			},
			companyDimension(lng_lat) {
				//进入到企业标注
				const that = this;
				// if (lng_lat != undefined && lng_lat != '' && lng_lat != 'undefined') {
				// 	//已经标注过了
				// 	uni.navigateTo({
				// 		url: '/pages/dimension/showPoint?companyId=' + this.companyId + '&lng_lat=' + lng_lat
				// 	})
				// 	return;
				// }
				uni.navigateTo({
					url: '/pages/dimension/dimension?companyId=' + this.companyId + '&lng_lat=' + lng_lat,
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						updateLngLat: function(data) {
							that.$set(that.addInspectData, "lngLat", data.lng_lat);
						}
					},
				})
			},
			showImage(url) {
				Vue.prototype.$previewImage(url);
			},
			pointsTable() {
				const that = this;
				//生成要点表
				uni.navigateTo({
					url: '/pages/inspect/checkPointTable?id=' + this.checkId,
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						yaodianbiao: function(data) {
							console.log(data)
							that.yaodianbiao = that.baseUrl + data
						}
					}
				})
			},
			resultTable() {
				const that = this;
				const rectificationSituationDataList = this.rectificationSituationDataList;

				let totalItemCount = 0;
				let importantOneCount = 0;
				let importantZeroCount = 0;
				let importantOneContentSelectZeroOrNegativeCount = 0;
				let importantZeroContentSelectZeroOrNegativeCount = 0;
				let contentSelectOneCount = 0;
				let contentSelectZeroOrNegativeCount = 0;
				let importantOneSerialNumbers = [];
				let importantZeroSerialNumbers = [];
				let importantOneContentSelectZeroOrNegativeSerialNumbers = [];
				let importantZeroContentSelectZeroOrNegativeSerialNumbers = [];
				let contentSelectOneSerialNumbers = [];
				let contentSelectZeroOrNegativeSerialNumbers = [];

				rectificationSituationDataList.forEach(dataItem => {
					const outerSerialNumber = dataItem.serialNumber;

					dataItem.contentList.forEach(contentItem => {
						totalItemCount++;

						if (contentItem.important === "1") {
							importantOneCount++;
							importantOneSerialNumbers.push(
								`${outerSerialNumber}.${contentItem.serialNumber}`);

							if (contentItem.contentSelect === "0") {
								importantOneContentSelectZeroOrNegativeCount++;
								importantOneContentSelectZeroOrNegativeSerialNumbers.push(
									`${outerSerialNumber}.${contentItem.serialNumber}`);
							}
						} else if (contentItem.important === "0") {
							importantZeroCount++;
							importantZeroSerialNumbers.push(
								`${outerSerialNumber}.${contentItem.serialNumber}`);

							if (contentItem.contentSelect === "0") {
								importantZeroContentSelectZeroOrNegativeCount++;
								importantZeroContentSelectZeroOrNegativeSerialNumbers.push(
									`${outerSerialNumber}.${contentItem.serialNumber}`);
							}
						}

						if (contentItem.contentSelect === "1") {
							contentSelectOneCount++;
							contentSelectOneSerialNumbers.push(
								`${outerSerialNumber}.${contentItem.serialNumber}`);
						} else if (contentItem.contentSelect === "0") {
							contentSelectZeroOrNegativeCount++;
							contentSelectZeroOrNegativeSerialNumbers.push(
								`${outerSerialNumber}.${contentItem.serialNumber}`);
						}
					});
				});

				// 打印结果
				let dataObj = {
					'contentNum': totalItemCount,
					'importantOneCount': importantOneCount,
					'importantZeroCount': importantZeroCount,
					'importantOneSerialNumbers': importantOneSerialNumbers.join(', '),
					'importantZeroSerialNumbers': importantZeroSerialNumbers.join(', '),
					'importantOneContentSelectZeroOrNegativeSerialNumbers': importantOneContentSelectZeroOrNegativeSerialNumbers
						.join(', '),
					'importantZeroContentSelectZeroOrNegativeSerialNumbers': importantZeroContentSelectZeroOrNegativeSerialNumbers
						.join(', '),
					'contentSelectOneCount': contentSelectOneCount,
					'contentSelectZeroOrNegativeCount': contentSelectZeroOrNegativeCount,
					'contentSelectOneSerialNumbers': contentSelectOneSerialNumbers.join(', '),
					'contentSelectZeroOrNegativeSerialNumbers': contentSelectZeroOrNegativeSerialNumbers.join(', '),
					'importantOneContentSelectZeroOrNegativeCount': importantOneContentSelectZeroOrNegativeCount,
					'importantZeroContentSelectZeroOrNegativeCount': importantZeroContentSelectZeroOrNegativeCount,
					'checkResult': that.addInspectData.accordCount,
					'handleResult': that.addInspectData.CHECK_RESULTS,
					'proStatus': that.addInspectData.manageStatus,
					'disReason': that.addInspectData.shutdownDescription
				};

				let dataObjJSON = JSON.stringify(dataObj);
				let encodedStatistics = encodeURIComponent(dataObjJSON);

				uni.showActionSheet({
					itemList: ['生成结果记录表', '选择文件'],
					title: '选择操作',
					success: function(res) {
						if (res.tapIndex == 0) {
							//生成结果记录表
							// if (supProcess == 'spxs' || supProcess == 'cyfw') {

							uni.navigateTo({
								url: '/pages/productionInspect/productionResultTable?id=' + that
									.companyId + '&numId=' + that.inspectId + '&checkTime=' + that
									.rectificationTimeLimit + '&lawEnforcementOfficerOne=' + that
									.LawEnforcementOfficerOne + '&lawEnforcer2Value=' + that
									.addInspectData.lawEnforcer2 + '&serialNum=' + that.serialNum +
									'&dataObj=' + encodedStatistics,
								events: {
									/// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
									yaodianbiao: function(data) {
										that.jieguojilu = data
									}
								}
							})
							// } else {
							// 	uni.navigateTo({

							// 		url: '/pages/inspect/productionResultTable?id=' + that.checkId,
							// 		events: {
							// 			// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
							// 			yaodianbiao: function(data) {
							// 				that.jieguojilu = that.baseUrl + data
							// 			}
							// 		}
							// 	})
							// }
						} else {
							// console.log('11111', e.tempFilePaths[0])
							uni.chooseImage({
								count: 1,
								// sourceType:['camera'],
								success: (e) => {
									uni.uploadFile({
										url: uni.$baseUrl + 'pro/ratingScore/uploadImg',
										filePath: e.tempFilePaths[0],
										name: 'file',
										success: (uploadFileRes) => {
											const obj = JSON.parse(uploadFileRes.data);
											uni.hideLoading();
											if (obj.code == '0') {
												// that.$set(that.rectificationSituationDataList[index]
												// 	.contentList[dataIndex], "filePath", obj.data
												// 	.filePath);
												that.jieguojilu = obj.data.filePath;
												uni.showModal({
													content: '保存成功',
													title: '提示',
													showCancel: false
												})
											} else {
												uni.showToast({
													icon: 'success',
													title: '存储失败'
												})
											}
										}
									});
									// const uploadTask = uni.uploadFile({
									// 	url: '/dailyInspect/uploadResultRecord', //仅为示例，非真实的接口地址
									// 	filePath: e.tempFilePaths[0],
									// 	name: "imgFile",
									// 	timeout: '10000', //超时时间10秒
									// 	formData: {
									// 		"checkId": that.checkId,
									// 		"type": '2'
									// 	},
									// 	dataType: 'json',
									// 	success: (upRes) => {
									// 		uni.showToast({
									// 			title: '上传完成',
									// 			icon: 'success'
									// 		});
									// 		console.log(upRes.data)
									// 		const result = JSON.parse(upRes.data);
									// 		if (result.code == '1') {
									// 			uni.showModal({
									// 				content: '保存失败,请重新尝试',
									// 				showCancel: false
									// 			})
									// 		}
									// 		that.jieguojilu = uni.$baseUrl + result
									// 			.data;
									// 	},
									// 	fail(err) {
									// 		uni.showModal({
									// 			content: '保存失败,请重新尝试',
									// 			showCancel: false
									// 		})
									// 	},
									// 	complete() {
									// 		uni.hideLoading()
									// 	}
									// });
								},
								fail: () => {
									uni.showToast({
										icon: 'error',
										title: '图片选择错误'
									})
								}
							})
						}
					}
				})
			},
			// 回到首页
			goBack() {
				uni.navigateBack()
			},
			checkExist(v1, v2, v3, v4) {
				//判断是否存在检查指南
				if ((v1 == undefined || v1 == '') && (v2 == undefined || v2 == '') && (v3 == undefined || v3 == '') && (
						v4 == undefined || v4 == '')) {
					return false;
				} else {
					return true;
				}
			},
			// 跳转只能客服
			robot() {
				let message = "";
				if (this.selectedContent != null && this.selectedContent != '') {
					let selectedContent = this.selectedContent;
					selectedContent = selectedContent.replace('content', "");
					let selectedContentArray = selectedContent.split(':');
					var d = this.rectificationSituationDataList.itemList[selectedContentArray[0]].contentList[
						selectedContentArray[1]];
					message = d.CHECK_CONTENT;
				}
				uni.navigateTo({
					url: '/pages/robot/robot',
					success: (res) => {
						res.eventChannel.emit('sendDefaultMessage', {
							message: message
						})
					}

				})
			},
			async signatureOne() {
				const that = this;
				//签名
				uni.navigateTo({
					url: '/pages/signature/signature',
					events: {
						updateSign(data) {
							that.sigOnePic = data;
						}
					}
				})
			},
			async signatureTwo() {
				const that = this;
				//签名
				uni.navigateTo({
					url: '/pages/signature/signature',
					events: {
						updateSign(data) {
							that.sigTwoPic = data;
						}
					}
				})
			},
			async signatureThree() {
				const that = this;
				//签名
				uni.navigateTo({
					url: '/pages/signature/signature',
					events: {
						updateSign(data) {
							that.sigThreePic = data;
						}
					}
				})
			},
			// 切换选项卡
			stepActive(index) {
				// if(this.addInspectData.companyInfo.MANAGE_STATUS == '1' && index == 1){
				// 	uni.showToast({
				// 		title:'经营异常无需维护检查内容',
				// 		icon:'none'
				// 	})
				// 	return ;
				// }
				this.stepList.forEach((item, idx) => {
					item.active = idx === index;
				});
			},
			// 基础信息选项执法人员1选择
			lawEnforcementOfficialsOne(value) {
				this.$set(this.addInspectData.superviseInfo, "checkPerson1Id", value)
				this.notificationCheckPerson1 = value;
			},
			pointCheck() {
				const that = this;
				//进入到定位查看
				let LNG_LAT = that.addInspectData.lngLat + "";
				uni.navigateTo({
					url: '/pages/inspect/pointCheck?lng=' + LNG_LAT.split(",")[0] + '&lat=' + LNG_LAT.split(",")[
						1],
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						updatePoint: function(data) {
							//重新获取企业位置信息
							that.basicInformationData();
						},
					},
				})

			},
			async showRiskContent(checkContentId) {
				//查看风险提示
				uni.showLoading({
					title: '获取信息',
					mask: true
				})
				this.checkContentRiskList = [];
				const res = await uni.$api.getRiskTypeByCheckContent({
					checkContentId: checkContentId
				})
				uni.hideLoading();
				if (res.data.code == '0') {
					this.checkContentRiskList = res.data.data;
				}
				this.$refs.riskTypePopup.open("bottom");
			},
			riskTypePopupClose() {
				this.$refs.riskTypePopup.close();
			},
			inspectionContentActive(index, value) {
				var d = this.rectificationSituationDataList[index];
				this.$set(d, "rightButtonActive", value);
				var contentList = d.contentList;
				for (var i = 0; i < contentList.length; i++) {
					if (value === '-1') {
						if (d.contentList[i].existMissing == '1') {
							this.$set(d.contentList[i], "contentSelect", value);
						}
					} else {
						this.$set(d.contentList[i], "contentSelect", value);
					}
				}
				this.loadResultBtn();
			},
		}
	}
</script>

<style lang="scss">
	.addInspectTabsContent {
		background: #F9F9F9;
		height: calc(100vh - 195rpx);

		.upper {
			position: fixed;
			z-index: 1;
			top: 0;
			left: 0;
			width: 100%;

			.title {
				background: url('/static/img/inspectBg.png');
				background-size: cover;
				width: 100%;
				height: 115rpx;
				line-height: 115rpx;
				position: relative;
				display: flex;
				justify-content: center;

				.arrow {
					position: absolute;
					left: 33rpx;
					top: 50%;
					transform: translate(0%, -50%);
					width: 100rpx;
					height: 100rpx;

					&::before {
						display: block;
						content: "";
						position: absolute;
						top: 50%;
						left: 0%;
						width: 20rpx;
						height: 20rpx;
						border-left: 1px solid #fff;
						border-top: 1px solid #fff;
						transform: translate(0%, -50%) rotate(-45deg);
					}
				}

				text {
					font-size: 30rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
					letter-spacing: 1px;
				}

				.intelligence {
					position: absolute;
					right: 30rpx;
					top: 50%;
					transform: translate(0%, -50%);
					font-size: 28rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
					display: flex;

					image {
						width: 75rpx;
						height: 64rpx;
					}
				}
			}

			.step {
				display: flex;
				justify-content: space-around;
				height: 80rpx;
				line-height: 80rpx;
				background: #F9F9F9;

				view {
					position: relative;
					font-size: 25rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #999999;

					&.active {
						color: #0552A9;

						&::before {
							display: block;
							content: "";
							position: absolute;
							left: 50%;
							bottom: 0%;
							transform: translate(-50%, 0%);
							width: 100rpx;
							height: 5rpx;
							background: #0552A9;
						}
					}
				}
			}
		}

		.centre {
			margin: 195rpx 0 0 0;
			// padding: 0 17.5rpx;
			height: calc(100vh - 280rpx);
			overflow-x: hidden;

			.content-container {

				.title {
					height: 73rpx;
					line-height: 73rpx;
					background: #E1EAF4;
					display: flex;
					text-indent: 50rpx;
					font-size: 24rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #002B5B;
				}

				.addInspect {
					padding: 0 0 50rpx 0;

					.map {
						height: 80rpx;
						line-height: 80rpx;
						background: url('/static/img/map.png') no-repeat center center;
						background-size: cover;
						font-size: 23rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #002E63;
						margin: 0 auto;
						display: flex;
						align-items: center;

						image {
							width: 22rpx;
							height: 26rpx;
							margin: 0 11rpx 0 53rpx;
						}
					}

					.content {

						.text {
							font-size: 19rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
							margin: 0 auto 13rpx;
							min-height: 68rpx;
							line-height: 68rpx;
							line-height: 1.2;
							display: flex;
							align-items: center;
							padding: 10rpx 50rpx;
							background: #fff;
							justify-content: flex-start;
							flex: 1;
							white-space: nowrap;

							text {
								color: #666666;
								width: 460rpx;
								white-space: normal;
							}

							.uni-stat__select {
								width: 460rpx;

								/deep/.uni-select {
									border: none;
								}

								/deep/.uni-select__input-placeholder {
									font-size: 19rpx;
								}
							}

							.uni-date {
								width: 460rpx;

								/deep/.uni-date-editor--x {
									border: none;
								}
							}

							uni-navigator {
								display: flex;
								align-items: center;
								color: #0552A9;
							}

							&:nth-child(even) {
								background: #F9F9F9;
							}

							.topicFlex {
								display: flex;
								justify-content: flex-start;
								width: 20%;
							}

							text {
								width: 80%;
								line-height: 1.6;
							}

							/deep/.uni-select {
								padding: 0;
							}

							/deep/.uni-select__selector {
								padding: 0;
							}

							/deep/.uni-select__selector-item {
								font-size: 19rpx;
								font-family: PingFangSC-Regular, PingFang SC;
								font-weight: 400;
								color: #333333;
								padding: 5px 10px !important;
								text-align: left !important;
								line-height: 1.6 !important;
							}

							/deep/.uni-select__selector-empty {
								font-size: 19rpx;
								font-family: PingFangSC-Regular, PingFang SC;
								font-weight: 400;
								color: #333333;
							}
						}

						.two {

							.box {

								.text {

									.input-container {

										input {
											font-size: 19rpx;
										}
									}
								}
							}

						}

					}
				}

				.addInspectContent {
					padding: 0 17.5rpx 250rpx 17.5rpx;


					.positioning {
						display: flex;
						align-items: center;
						height: 56rpx;
						line-height: 56rpx;
						background: #33B97C;
						box-shadow: 0rpx 0rpx 29rpx 0rpx rgba(0, 0, 0, 0.05);
						border-radius: 28rpx;
						font-size: 23rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #FFFFFF;
						margin: 14rpx auto;

						image {
							width: 22rpx;
							height: 26rpx;
							margin: 0 11rpx 0 53rpx;
						}
					}

					.box {

						.manage_status_box {
							display: flex;
							flex-direction: row;
							justify-content: flex-start;
							align-items: center;
							background: #FFFFFF;
							box-shadow: 0rpx 0rpx 29rpx 0rpx rgba(0, 0, 0, 0.05);
							border-radius: 15rpx;
							padding: 23rpx 28rpx;
							margin-bottom: 20rpx;


							.manage_status_title {
								font-size: 26rpx;
							}

							.custom-radio-group {
								display: flex;
								font-size: 26rpx;
								font-family: PingFangSC-Regular, PingFang SC;
								font-weight: 400;

								.labelRadio {
									display: flex;
									margin: 0 10rpx;
									align-items: center;

									/deep/radio {
										display: none;
									}

									&::before {
										content: '';
										width: 20rpx;
										height: 20rpx;
										line-height: 20rpx !important;
										text-align: center;
										border: 1rpx solid #979797;
										border-radius: 50%;
										font: normal normal normal 14px / 1 uni;
										font-size: 20rpx;
										color: #fff;
										margin: 0 4rpx 0 0;
									}

									&.yes::before {
										content: "\EA08";
										background-color: #07D276;
										border-color: #07D276;
									}

									&.no::before {
										content: "\00D7";
										background-color: #FF1F1F;
										border-color: #FF1F1F;
										line-height: 18rpx !important;
									}
								}
							}
						}

						.dt {
							background: #FFFFFF;
							box-shadow: 0rpx 0rpx 29rpx 0rpx rgba(0, 0, 0, 0.05);
							border-radius: 15rpx;
							padding: 23rpx 28rpx;
							// position: fixed;
							width: 694rpx;
							// left:0rpx;
							// bottom: 110rpx;;
							z-index: 2;

							.h1 {
								font-size: 24rpx;
								font-family: PingFangSC-Medium, PingFang SC;
								font-weight: 500;
								color: #0552A9;
								// padding: 0 0 22rpx 0;
								// border-bottom: 2rpx solid #CECECE;
							}

							.div {
								display: flex;
								align-items: center;
								margin: 21rpx auto 0;

								.left {
									font-size: 20rpx;
									font-family: PingFangSC-Regular, PingFang SC;
									font-weight: 400;
									color: #3A3A3A;
								}

								.right {
									font-size: 20rpx;
									font-family: PingFangSC-Regular, PingFang SC;
									font-weight: 400;
									color: #686868;

									text {
										color: #DC0000;
									}

									input {
										font-size: 20rpx;
										font-family: PingFangSC-Regular, PingFang SC;
										font-weight: 400;
										color: #999999;
										width: 400rpx;
										text-indent: 10rpx;
									}

									.placeholder-class {
										color: #999999;
									}
								}

								&:last-child {
									align-items: center;
								}

								.custom-radio-group {
									display: flex;
									font-size: 26rpx;
									font-family: PingFangSC-Regular, PingFang SC;
									font-weight: 400;

									.labelRadio {
										display: flex;
										margin: 0 10rpx;
										align-items: center;

										/deep/radio {
											display: none;
										}

										&::before {
											content: '';
											width: 20rpx;
											height: 20rpx;
											line-height: 20rpx !important;
											text-align: center;
											border: 1rpx solid #979797;
											border-radius: 50%;
											font: normal normal normal 14px / 1 uni;
											font-size: 20rpx;
											color: #fff;
											margin: 0 4rpx 0 0;
										}

										&.yes::before {
											content: "\EA08";
											background-color: #07D276;
											border-color: #07D276;
										}

										&.no::before {
											content: "\00D7";
											background-color: #FF1F1F;
											border-color: #FF1F1F;
											line-height: 18rpx !important;
										}
									}
								}
							}
						}

						.dd {

							.up {
								display: flex;
								align-items: center;
								justify-content: space-between;
								margin-top: 30rpx;
								margin-bottom: 20rpx;

								.h1 {
									font-size: 22rpx;
									font-family: PingFangSC-Regular, PingFang SC;
									font-weight: 400;
									color: #333333;
									// margin: 10rpx auto;
									text-indent: 26rpx;
									width: 50%;
								}

								.titles-right {

									.list {
										display: flex;
										align-items: center;

										.option {
											padding: 6px 17px;
											border: 1px solid #C3C3C3;
											border-radius: 2px 0 0 2px;
											font-size: 10px;
											font-family: PingFangSC-Regular, PingFang SC;
											font-weight: 400;
											color: #666666;
											background: #fff;

											&+.option {
												border-left: 0;
												border-radius: 0;
											}

											&.active {
												border: 1px solid #e3b339;
												background: #e3b339;
												color: #fff;
											}

											&:last-child {
												border-radius: 0 2px 2px 0;
											}
										}
									}
								}
							}

							.block {
								background: #FFFFFF;
								box-shadow: 0rpx 0rpx 29rpx 0rpx rgba(0, 0, 0, 0.05);
								border-radius: 15rpx;
								padding: 23rpx 26rpx;

								.li {

									/deep/.uni-select__selector-item {
										font-size: 21rpx;
										font-family: PingFangSC-Regular, PingFang SC;
										font-weight: 400;
										color: #333333;
										padding: 8rpx 10px !important;
										text-align: left !important;
										height: auto !important;
										line-height: initial !important;
									}

									/deep/.uni-select__selector-empty {
										font-size: 21rpx;
										font-family: PingFangSC-Regular, PingFang SC;
										font-weight: 400;
										color: #333333;
									}

									/deep/.uni-select__input-text {
										font-size: 21rpx;
									}

									/deep/.uni-input-wrapper {
										font-size: 21rpx;
									}

									.titles {
										font-size: 22rpx;
										font-family: PingFangSC-Medium, PingFang SC;
										font-weight: 500;
										color: #353535;
										position: relative;
										display: flex;
										flex-direction: row;
										align-items: flex-start;
										justify-content: space-between;


										.titles-left {
											width: 420rpx;
											display: flex;
										}

										text {
											margin: 0 6rpx 0 0;
										}

										&.red {

											text {
												color: #EF0000;
											}
										}

										.titles-right {
											display: flex;
											flex-direction: row;
											align-items: flex-end;
											justify-content: flex-end;
											height: 30rpx;
											margin-top: 20rpx;
										}

										.guide {
											color: #026DC6;
											display: flex;
											align-items: center;
											margin-right: 10rpx;

											image {
												width: 22rpx;
												height: 22rpx;
												margin: 0 6rpx 0 0;
											}

											.triangle {
												width: 0;
												height: 0;
												border-top: 8rpx solid transparent;
												border-bottom: 8rpx solid transparent;
												border-left: 10rpx solid #026DC6;
												top: 50%;
												right: -20rpx;
												transform: translate(-50%, -50%);
											}
										}
									}

									.optionList {
										display: flex;
										flex-direction: column;
										margin: 10px auto 0;
										align-items: flex-end;

										.list {
											display: flex;

											.option {
												padding: 12rpx 30rpx;
												border: 2rpx solid #C3C3C3;
												border-radius: 5rpx 0 0 5rpx;
												font-size: 18rpx;
												font-family: PingFangSC-Regular, PingFang SC;
												font-weight: 400;
												color: #666666;

												&:nth-child(2) {
													border-left: none;
													// border-right: none;
													border-radius: 0;
												}

												&:last-child {
													border-radius: 0 5rpx 5rpx 0;
													border-left: 0;
												}

												&.active {
													background: #E9F2FF;
													color: #0552A9;
												}
											}
										}

										.case {
											// width: 650rpx;
											width: 100%;

											.h2 {
												font-size: 16rpx;
												font-family: PingFangSC-Medium, PingFang SC;
												font-weight: 500;
												color: #353535;
												margin: 20rpx 0 6rpx 0;
											}

											input {
												margin: 20rpx auto;
												border: 2rpx solid #e5e5e5;
												// border: 2rpx solid red;
												border-radius: 6rpx;
												text-indent: 10rpx;
												font-size: 18rpx;
												padding: 16rpx 0;

												&.inspect {
													// border: 2rpx solid yellow;
													border: 2px solid #e5e5e5;
												}
											}

											.placeholder-class {
												// color: red;
											}

											.placeholder-class-inspect {
												// color: yellow;
												color: #e5e5e5;
											}
										}
									}

									&+.li {
										margin: 20rpx auto 0;

										.title {

											// text {
											// 	color: #353535;
											// }
										}
									}
								}
							}

							&:last-child {
								padding: 0 0 150rpx 0;
							}
						}
					}
				}

				.addInspectTrisk {
					padding: 0 17.5rpx;

					.positioning {
						display: flex;
						align-items: center;
						height: 56rpx;
						line-height: 56rpx;
						background: #33B97C;
						box-shadow: 0rpx 0rpx 29rpx 0rpx rgba(0, 0, 0, 0.05);
						border-radius: 28rpx;
						font-size: 23rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #FFFFFF;
						margin: 14rpx auto;

						image {
							width: 22rpx;
							height: 26rpx;
							margin: 0 11rpx 0 53rpx;
						}
					}

					.box {
						border-top: 2rpx solid #D6D6D6;

						.div {
							display: flex;
							align-items: center;
							justify-content: flex-start;
							min-height: 68rpx;
							line-height: 68rpx;
							font-size: 21rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
							border-left: 2rpx solid #D6D6D6;
							border-right: 2rpx solid #D6D6D6;
							border-bottom: 2rpx solid #D6D6D6;

							.title {
								width: 199rpx;
								text-indent: 45rpx;
								border-right: 2rpx solid #D6D6D6;
							}

							.titles {
								width: 199rpx;
								text-indent: 45rpx;
								border-right: 2rpx solid #D6D6D6;
							}

							.state {
								width: 307rpx;
								text-align: left;
								text-indent: 88rpx;
								border-right: 2rpx solid #D6D6D6;
								display: flex;
								align-items: center;

								.yes {
									color: #333333;
								}

								.no {
									color: #FF2A2A;

									image {
										width: 21rpx;
										height: 21rpx;
										margin: 0 0 0 10rpx;
									}
								}
							}

							.details {
								width: 206rpx;
								height: 100%;
								text-align: center;
								color: #0552A9;
							}

							&:nth-child(even) {
								background: #F9F9F9;
							}
						}

						.determine {
							display: none;
							width: 80%;
							margin: 30rpx auto 0;
							height: 55rpx;
							line-height: 55rpx;
							background: #0552A9;
							border-radius: 10rpx;
							font-size: 20rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #fff;
							text-align: center;
						}

						.illustrate {
							padding: 16rpx 24rpx;

							.titles {
								font-size: 20rpx;
								font-family: PingFangSC-Medium, PingFang SC;
								font-weight: 500;
								color: #333333;
							}

							.content {
								font-size: 20rpx;
								padding-bottom: 20px;
								color: #666666;
							}
						}
					}
				}
			}

			.fixed {
				position: fixed;
				left: 0;
				bottom: 0;
				height: 92rpx;
				background: #fff;
				padding: 0 95rpx 24rpx 95rpx;
				margin: 0 auto;
				display: flex;
				align-items: center;
				width: calc(100% - 190rpx);

				button {
					width: 269rpx;
					height: 55rpx;
					line-height: 55rpx;
					background: #0552A9;
					border-radius: 10rpx;
					font-size: 20rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;

					&.determine {
						color: #fff;
					}

					&.cancellation {
						display: none;
						background: none;
						border: 1rpx solid #979797;
						color: #979797;
					}
				}
			}
		}

		.facadePhotoPopupContent,
		.noticeFormPopupContent,
		.riskReminderDetailsContent,
		.taskAssociationContent,
		.riskWarningPopupContent,
		.inspectionGuidelinesContent {
			background: #FFFFFF;
			border-radius: 20rpx 20rpx 0 0;

			.title {
				width: 100%;
				height: 80rpx;
				line-height: 80rpx;
				background: url('/static/img/popupTitle.png') no-repeat center center;
				background-size: cover;
				font-size: 25rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: 500;
				color: #FFFFFF;
				// text-indent: 45rpx;
				text-align: center;
			}

			.box {
				padding: 45rpx 30rpx;

				.image-list {
					display: flex;
					flex-wrap: wrap;
					justify-content: flex-start;

					.image-item {
						position: relative;
						width: 212rpx;
						height: 212rpx;
						overflow: hidden;
						border-radius: 20rpx;
						margin: 0 25rpx 25rpx 0;

						&:nth-child(3n) {
							margin: 0 0 25rpx 0;
						}

						.itemImg {
							width: 100%;
							border-radius: 20rpx;
						}

						.delete {
							position: absolute;
							top: 16rpx;
							right: 16rpx;
							width: 20rpx;
							height: 20rpx;
						}
					}

					.upload {
						width: 212rpx;
						height: 212rpx;
						background: url('/static/img/upload.png') no-repeat center center;
						background-size: cover;
						padding: 0;
						margin: 0;
					}

				}

				.div {
					display: flex;
					align-items: center;
					justify-content: flex-start;
					min-height: 68rpx;
					line-height: 68rpx;
					font-size: 21rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #333333;
					border-bottom: 2rpx solid #D6D6D6;

					.titles {
						width: 199rpx;
						text-indent: 45rpx;
						border-right: 2rpx solid #D6D6D6;
					}

					.state {
						width: 307rpx;
						text-align: left;
						text-indent: 88rpx;
						border-right: 2rpx solid #D6D6D6;
						display: flex;
						align-items: center;

						.yes {
							color: #333333;
						}

						.no {
							color: #FF2A2A;

							image {
								width: 21rpx;
								height: 21rpx;
								margin: 0 0 0 10rpx;
							}
						}
					}

					.details {
						width: 206rpx;
						height: 100%;
						text-align: center;
						color: #0552A9;
					}

					&:nth-child(even) {
						background: #F9F9F9;
					}
				}

				.dt {
					font-size: 20rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #FF4242;
					text-align: center;
					margin: 26rpx auto 0;
				}

				.dd {
					display: flex;
					align-items: center;
					border-bottom: 2rpx solid #D6D6D6;
					font-size: 21rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #333333;
					border-top: 2rpx solid #D6D6D6;
					border-left: 2rpx solid #D6D6D6;
					border-right: 2rpx solid #D6D6D6;

					/deep/.uni-checkbox-input {
						width: 20rpx;
						height: 20rpx;
						margin: 0 12.5rpx 0 32rpx;
						border-radius: 0;
						border-color: #0552A9;
					}

					/deep/.uni-checkbox-input-checked {
						background: #0552A9;

						&::before {
							color: #fff;
							font-size: 16rpx;
						}
					}

					>view {

						&:nth-child(1) {
							width: 95rpx;
							height: 68rpx;
							line-height: 68rpx;
							text-align: center;
							border-right: 2rpx solid #D6D6D6;
						}

						&:nth-child(2) {
							width: 410rpx;
							height: 68rpx;
							line-height: 68rpx;
							text-align: left;
							border-right: 2rpx solid #D6D6D6;
							text-indent: 2em;
						}

						&:nth-child(3) {}
					}

					&+.dd {
						border-top: none;
					}
				}
			}

			.button {
				margin: 58rpx auto 0;
				padding: 0 95rpx 24rpx 95rpx;
				display: flex;

				button {
					width: 269rpx;
					height: 55rpx;
					line-height: 55rpx;
					background: #0552A9;
					border-radius: 10rpx;
					font-size: 20rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;

					&.determine {
						color: #fff;
					}

					&.cancellation {
						background: none;
						border: 1rpx solid #979797;
						color: #979797;
					}
				}
			}
		}

		.noticeFormPopupContent {

			.h1Title {
				font-size: 26rpx;
				margin: 20rpx auto 0;
				text-align: center;
			}

			.h2Ttitle {
				font-size: 30rpx;
				text-align: center;
			}

			.box {
				padding: 45rpx 30rpx;
				height: 400px;
				overflow-x: hidden;

				.div {
					border-top: 2rpx solid #D6D6D6;
					border-left: 2rpx solid #D6D6D6;
					border-right: 2rpx solid #D6D6D6;
					line-height: initial;
					height: initial;
					min-height: 82rpx;
					position: relative;

					&::before {
						content: "";
						display: block;
						width: 2rpx;
						height: 100%;
						background: #D6D6D6;
						position: absolute;
						top: 50%;
						left: 229rpx;
						transform: translate(-50%, -50%);
					}

					.titles {
						width: 229rpx;
						line-height: 1.2;
						height: 100%;
						display: flex;
						flex-direction: column;
						justify-content: center;
						margin: 0 20rpx 0 0;
						border-right: 0;
					}

					.textarea {
						width: 50%;
						padding: 10rpx 0;
					}

					input {
						font-size: 21rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						width: 460rpx;
						text-indent: 20rpx;
					}

					.value {
						font-size: 21rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						width: 460rpx;
						text-indent: 20rpx;
					}

					.placeholder-class {
						color: #999999;
					}

					.uni-stat__select {
						width: 460rpx;

						/deep/.uni-select {
							border: none;
						}
					}

					.uni-date {
						width: 460rpx;

						/deep/.uni-date-editor--x {
							border: none;
						}
					}

					&+.div {
						border-top: none;
					}
				}
			}
		}

		.riskReminderDetailsContent {

			.illustrate {

				.titles {
					font-size: 20rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #333333;
				}

				.content {
					font-size: 20rpx;
					color: #666666;
				}
			}

			.button {
				margin: 58rpx auto 0;
				padding: 0 95rpx 24rpx 95rpx;
				display: flex;

				button {
					width: 269rpx;
					height: 55rpx;
					line-height: 55rpx;
					background: #0552A9;
					border-radius: 10rpx;
					font-size: 20rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;

					&.determine {
						color: #fff;
					}

					&.cancellation {
						background: none;
						border: 1rpx solid #979797;
						color: #979797;
					}
				}
			}

			.closeReturn {
				width: 80%;
				margin: 30rpx auto 0;
				height: 55rpx;
				line-height: 55rpx;
				background: #0552A9;
				border-radius: 10rpx;
				font-size: 20rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #fff;
				text-align: center;
				position: relative;
				top: -30rpx;
			}
		}

		.riskWarningPopupContent {

			.box {
				height: 60vh;
				overflow-x: hidden;

				.div {
					border-top: 2rpx solid #D6D6D6;
					border-left: 2rpx solid #D6D6D6;
					border-right: 2rpx solid #D6D6D6;

					&+.div {
						border-top: none;
					}
				}

				.illustrate {
					padding: 16rpx 24rpx;

					.titles {
						font-size: 20rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #333333;
					}

					.content {
						font-size: 20rpx;
						color: #666666;
					}
				}

				.buttonBg {
					width: 700rpx;
					margin-top: 30rpx;
					background: #fff;

					.determine {
						width: 80%;
						margin: 30rpx auto 0;
						height: 55rpx;
						line-height: 55rpx;
						background: #0552A9;
						border-radius: 10rpx;
						font-size: 20rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #fff;
						text-align: center;
					}
				}
			}
		}

		.inspectionGuidelinesContent {

			.box {

				.div {

					border-top: 2rpx solid #D6D6D6;
					border-left: 2rpx solid #D6D6D6;
					border-right: 2rpx solid #D6D6D6;

					&+.div {
						border-top: none;
					}

					.contents {
						text-indent: 20rpx;
					}
				}

				.closeReturn {
					width: 80%;
					margin: 30rpx auto 0;
					height: 55rpx;
					line-height: 55rpx;
					background: #0552A9;
					border-radius: 10rpx;
					font-size: 20rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #fff;
					text-align: center;
				}
			}
		}
	}

	.no-realy-content {
		// display: flex;
		// flex-direction: row;
		// justify-content: space-between;
		// align-items: center;
		// // width: 650rpx;
		// width: 100%;
		display: flex;
		align-items: flex-end;
		width: 100%;
		flex-direction: column;
		justify-content: space-between;

		/deep/.rudon-select__input-box {
			font-size: 21rpx;
		}

		/deep/.rudon-select__selector-item {
			font-size: 21rpx;
			padding: 0 !important;
		}

		/deep/.uni-icons::before {
			font-size: 21rpx;
		}
	}



	.uni-select__input-text {
		font-size: 18rpx;
	}

	.content-upload-btn {
		margin-left: 20px;
		border: 0px;
		border-radius: 7px;
		background-color: #e3b339;
		color: #ffffff;
		padding: 6px 15px;
		font-size: 20rpx;
	}

	.content-upload-btn-realy {
		background-color: #1da247;
		margin-left: 20px;
		border: 0px;
		border-radius: 7px;
		color: #ffffff;
		padding: 6px 15px;
		font-size: 20rpx;
	}

	.upload-btn {
		width: 76px;
		height: 32px;
		border-radius: 7px;
		background-color: #026DC6;
		color: #ffffff;
		font-size: 11px;
	}


	.popupContent,
	.popupContentTwo {
		background: #FFFFFF;
		border-radius: 20rpx 20rpx 0 0;

		.title {
			width: 100%;
			height: 80rpx;
			line-height: 80rpx;
			background: url('/static/img/popupTitle.png') no-repeat center center;
			background-size: cover;
			font-size: 25rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			// text-indent: 45rpx;
			text-align: center;
		}

		.box {
			text-align: center;
			margin: 50rpx auto;
		}

		.button {
			margin: 58rpx auto 0;
			display: flex;
			justify-content: space-around;
			align-items: center;

			button {
				width: 269rpx;
				height: 55rpx;
				line-height: 55rpx;
				background: #0552A9;
				border-radius: 10rpx;
				font-size: 20rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;

				&.determine {
					color: #fff;
				}

				&.cancellation {
					background: none;
					border: 1rpx solid #979797;
					color: #979797;
				}
			}
		}
	}

	.sig-image {
		width: 100px;
		height: 50px;
		margin-left: 20px;
	}

	.item-text {
		line-height: 30px;
	}

	.box-item {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		padding: 0px 14px;

	}

	.box-item-left {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: flex-start;
		font-size: 24rpx
	}

	.btna {
		font-size: 24rpx;
		color: #0055ff;
		line-height: 24rpx;
	}

	.location-status {
		font-size: 24rpx;
		color: #07D276;
		text-align: center;
	}

	.location-active {
		font-size: 24rpx;
		color: #d22741;
		text-align: center;
	}

	.custom-radio-group {
		display: flex;

		.labelRadio {
			display: flex;
			margin: 0 10rpx;
			align-items: center;
		}

		/deep/.uni-radio-input {
			width: 20rpx;
			height: 20rpx;
			border: 1rpx solid #979797;
		}

		.yes {

			/deep/.uni-radio-input {
				background: #07D276 !important;
				border-color: #07D276 !important;

				&::before {
					background: #07D276;
					border-radius: 50%;
					font-size: 16rpx;
				}
			}
		}

		.no {

			/deep/.uni-radio-input {
				background: #FF1F1F !important;
				border-color: #FF1F1F !important;
				position: relative;
				transform: rotate(45deg);

				&::before {
					content: "";
					position: absolute;
					top: 50%;
					left: 50%;
					background-color: #fff;
					width: 2rpx;
					height: 60%;
					transform: translate(-50%, -50%);
				}

				&::after {
					content: "";
					position: absolute;
					top: 50%;
					left: 50%;
					background-color: #fff;
					width: 60%;
					height: 2rpx;
					transform: translate(-50%, -50%);
				}
			}
		}
	}

	.abnormal {
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 29rpx 0rpx rgba(0, 0, 0, 0.05);
		border-radius: 15rpx;
		padding: 23rpx 28rpx;
		margin-bottom: 20rpx;

		.text {
			display: flex;
			font-size: 26rpx;

			.textarea {
				width: 76%;
				font-size: 26rpx;

				/deep/.textarea-placeholder {
					font-size: 26rpx;
				}
			}
		}

		.block {
			.text {
				display: flex;
				flex-direction: row;
				justify-items: flex-start;
				align-items: center;
				padding: 23rpx 0rpx;

				.topicFlex {
					display: flex;
					justify-content: flex-start;
					width: 26%;
					font-size: 24rpx;
				}

				.uni-stat__select {
					width: 460rpx;

					/deep/.uni-select {
						// border: none;
						// padding: 0;
					}

					/deep/.uni-select__input-placeholder {
						font-size: 19rpx;
					}

					/deep/.uni-select__selector {
						// padding: 0;
					}

					/deep/.uni-select__selector-item {
						font-size: 19rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #333333;
						padding: 5px 10px !important;
						text-align: left !important;
						line-height: 1.6 !important;
					}

					/deep/.uni-select__selector-empty {
						font-size: 19rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #333333;
					}
				}

				.div {
					display: flex;
					flex-direction: column;
					line-height: initial;
				}

				text {
					font-size: 24rpx;
				}
			}
		}
	}

	.three {
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 29rpx 0rpx rgba(0, 0, 0, 0.05);
		border-radius: 15rpx;
		padding: 23rpx 28rpx;
		margin-bottom: 20rpx;

		.box {

			.text {
				display: flex;
				flex-direction: row;
				align-items: flex-start;
				justify-content: flex-start;

				view {
					color: #1e4de6
				}
			}

			.facadePhoto {
				height: 150px;
				font-size: 26rpx;

				image {
					width: 100rpx;
					height: 100rpx;
				}
			}
		}
	}

	.text-red {
		color: #e11515;
	}

	.float-border {
		// border:1px solid red;
		padding: 20rpx;
		// overflow: hidden;
		box-shadow: 0px 0px 15rpx 6rpx rgba(147, 142, 213, 0.5);
		transition: box-shadow 0.3s ease;
		border-radius: 10rpx;
	}

	.problem {
		width: 100%;
		border: 1px solid #D6D6D6;
		margin-top: 10px;
	}
</style>